package com.bjqh.edu.Bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/9/27.
 */

public class Orderdetails implements Parcelable {


    private List<DataBean> data;

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {

        /**
         * uid : 50
         * id : 19
         * deviceinfor : null
         * coursedes : 适合小学一年级,一对一
         * time : 1506306583000
         * price : 0.0
         * status : 0
         * ordernum : 20170925102942956001
         * paytime : null
         * cid : 6
         * coursename : 免费试听课
         */

        private int uid;
        private int id;
        private String deviceinfor;
        private String coursedes;
        private long time;
        private double price;
        private int status;
        private String ordernum;
        private String paytime;
        private int cid;
        private String coursename;

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        private  String msg;

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public Object getDeviceinfor() {
            return deviceinfor;
        }

        public void setDeviceinfor(String deviceinfor) {
            this.deviceinfor = deviceinfor;
        }

        public String getCoursedes() {
            return coursedes;
        }

        public void setCoursedes(String coursedes) {
            this.coursedes = coursedes;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getOrdernum() {
            return ordernum;
        }

        public void setOrdernum(String ordernum) {
            this.ordernum = ordernum;
        }

        public Object getPaytime() {
            return paytime;
        }

        public void setPaytime(String paytime) {
            this.paytime = paytime;
        }

        public int getCid() {
            return cid;
        }

        public void setCid(int cid) {
            this.cid = cid;
        }

        public String getCoursename() {
            return coursename;
        }

        public void setCoursename(String coursename) {
            this.coursename = coursename;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.uid);
            dest.writeInt(this.id);
            dest.writeString(this.deviceinfor);
            dest.writeString(this.coursedes);
            dest.writeLong(this.time);
            dest.writeDouble(this.price);
            dest.writeInt(this.status);
            dest.writeString(this.ordernum);
            dest.writeString(this.paytime);
            dest.writeInt(this.cid);
            dest.writeString(this.coursename);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.uid = in.readInt();
            this.id = in.readInt();
            this.deviceinfor = in.readString();
            this.coursedes = in.readString();
            this.time = in.readLong();
            this.price = in.readDouble();
            this.status = in.readInt();
            this.ordernum = in.readString();
            this.paytime = in.readString();
            this.cid = in.readInt();
            this.coursename = in.readString();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeList(this.data);
    }

    public Orderdetails() {
    }

    protected Orderdetails(Parcel in) {
        this.data = new ArrayList<DataBean>();
        in.readList(this.data, DataBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<Orderdetails> CREATOR = new Parcelable.Creator<Orderdetails>() {
        @Override
        public Orderdetails createFromParcel(Parcel source) {
            return new Orderdetails(source);
        }

        @Override
        public Orderdetails[] newArray(int size) {
            return new Orderdetails[size];
        }
    };
}
